﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Devonline.Core;
using Devonline.Entity;
using Mapster;

namespace Devonline.Identity.Admin.Models
{
    public class IdentityViewModel
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string Alias { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Image { get; set; }
        /// <summary>
        /// 身份类型
        /// </summary>
        public IdentityType Type { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 通用附件集合, NotMapped 用于记录实体对象上上传的附件
        /// </summary>
        [NotMapped, AdaptIgnore]
        public ICollection<Attachment> Attachments { get; set; }
    }
}
